package com.castle.fortress.admin.form.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 表模型对象
 * @author castle
 */
@Data
@ApiModel(value = "表模型对象", description = "表模型对象")
	public class FormModelDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "主键ID")
	@JsonProperty("id")
	private Long id;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "表名")
	@JsonProperty("tbName")
	private String tbName;
	@ApiModelProperty(value = "字段列表")
	@JsonProperty("cols")
	private List<ColModelDto> cols;
	@ApiModelProperty(value = "添加字段列表")
	@JsonProperty("addCols")
	private List<ColModelDto> addCols;
	@ApiModelProperty(value = "修改字段列表")
	@JsonProperty("modifyCols")
	private List<ColModelDto> modifyCols;
	@ApiModelProperty(value = "删除字段列表")
	@JsonProperty("dropCols")
	private List<ColModelDto> dropCols;
	@ApiModelProperty(value = "数据库原字段列表")
	@JsonProperty("oldCols")
	private List<ColModelDto> oldCols;

}
